#region File Description

#endregion

#region Using Statements
using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Content;
#endregion

namespace MilwormsGameData
{
    public class Dialog
    {
        private String name;
        public String Name
        {
            get { return name; }
            set { name = value; }
        }
        private int lp;
        public int Lp
        {
            get { return lp; }
            set { lp = value; }
        }
        private String txt;
        public String Txt
        {
            get { return txt; }
            set { txt = value; }
        }
        private int val;
        public int Val
        {
            get { return val; }
            set { val = value; }
        }

        /// <summary>
        /// Read a QuestNpc object from the content pipeline.
        /// </summary>
        public class DialogReader : ContentTypeReader<Dialog>
        {
            protected override Dialog Read(ContentReader input,
                Dialog existingInstance)
            {
                Dialog dialog = existingInstance;
                if (dialog == null)
                {
                    dialog = new Dialog();
                }

                dialog.Name = input.ReadString();
                dialog.Lp = input.ReadInt32();
                dialog.Txt = input.ReadString();
                dialog.Val = input.ReadInt32();
                return dialog;
            }
        }
    }
}
